import request from "@/config/axios/service";

export function getMaterial(params) {
  return request({
    url: "/Material/GetPageList",
    method: "get",
    params,
  });
}
export function postMaterial(data) {
  return request({
    url: "/Material/Add",
    method: "post",
    data,
  });
}
export function putMaterial(data) {
  return request({
    url: "/Material/Update",
    method: "put",
    data,
  });
}
export function deleteMaterial(data) {
  return request({
    url: "/Material/Delete",
    method: "delete",
    data,
  });
}
export function postMaterialImg(data) {
  return request({
    url: "/Material/UpdateMultipleImgAsync",
    method: "post",
    headers: { "Content-Type": "multipart/form-data" },
    data,
  });
}

export function postSpecs(data) {
  return request({
    url: "/",
    method: "post",
    data,
  });
}
export function putSpecs(data) {
  return request({
    url: "/",
    method: "put",
    data,
  });
}
